/*****************************************************************************************
   
   Copyright (c) Microsoft Corporation. All rights reserved.

   Use of this code sample is subject to the terms of the Microsoft
   Permissive License, a copy of which should always be distributed with
   this file.  You can also access a copy of this license agreement at:
   http://www.microsoft.com/resources/sharedsource/licensingbasics/permissivelicense.mspx

 ****************************************************************************************/

using System;

namespace GrooveWebServicesV12Helpers
{
	public class Address
	{
		private GrooveWebServicesV12Helpers.VCard m_VCard;

		private string m_Country;
		private string m_Extended;
		private string m_Locality;
		private string m_PoBox;
		private string m_PostCode;
		private string m_Region;
		private string m_Street;

		private GrooveVCardWebService.DeliveryType[] m_DeliveryTypes;

		public Address(GrooveWebServicesV12Helpers.VCard i_VCard, GrooveVCardWebService.Address i_Address)
		{
			m_Country = i_Address.Country;
			m_DeliveryTypes = i_Address.DeliveryTypes;
			m_Extended = i_Address.Extended;
			m_Locality = i_Address.Locality;
			m_PoBox = i_Address.PoBox;
			m_PostCode = i_Address.PostCode;
			m_Region = i_Address.Region;
			m_Street = i_Address.Street;

			m_VCard = i_VCard;
		}

		public string Country
		{
			get
			{
				return m_Country;
			}
		}

		public GrooveVCardWebService.DeliveryType[] DeliveryTypes
		{
			get
			{
				return m_DeliveryTypes;
			}
		}

		public string Extended
		{
			get
			{
				return m_Extended;
			}
		}

		public string Locality
		{
			get
			{
				return m_Locality;
			}
		}

		public string PoBox
		{
			get
			{
				return m_PoBox;
			}
		}

		public string PostCode
		{
			get
			{
				return m_PostCode;
			}
		}

		public string Region
		{
			get
			{
				return m_Region;
			}
		}

		public string Street
		{
			get
			{
				return m_Street;
			}
		}

		public GrooveWebServicesV12Helpers.VCard VCard
		{
			get
			{
				return m_VCard;
			}
		}
	}
}
